Seagate Crystal Reports Sample - First Class Hotels

Overview:

The sample is intended to be a small hotel reservation system for a fictional company called First Class Hotels. The sample demonstrates a number of Crystal Reports features that are new to version 8, as well as possible advanced uses for some existing features.

From the main screen that displays upon starting, the user has five options:

1. Reservations: The main form in the sample, used for managing the reservations. Some features of note:

2. Rooms: Allows adding/removing of hotel room numbers

3. Prices: Allows adding/removing of hotel room prices.

4. Customer: Allows adding/editing/removing of customers.

5. Exit


Crystal Reports features demonstrated in Visual Basic Code:
(* = new in version 8
)

Crystal Reports Viewer Object

Methods: PrintOut
Refresh
ReportSource
ViewReport

Events:

DblClicked

Properties:

EventInfo.Text
EventInfo.Type

Crystal Reports Report Object

Methods: *AddReportVariable
*GetReportVariable
*SetReportVariable
RecordSelectionFormula
*SetUnboundFieldSource

Properties:

Get and Set PaperSize
Get and Set PaperOrientation
*Get and Set PrinterDuplex
*Get and Set Papersource
Database.Table().Location
LeftMargin
RightMargin

Events

*BeforeFormatPage
*EndFormatPage
Initialize
*NoData
Section_Format